package ch06.ex61.ex63;

import java.util.concurrent.Callable;

public class Example6_3 {
    public static void main(String[] args) {
        Bus bus101 =new Bus();
        Taxi buleTaxi=new Taxi();
        Cinema redStarCinema=new Cinema();
        MoneyFare fare;
        ControlTemperature temperature;
        fare=bus101;
        bus101.brake();
        fare.charge();
        fare=buleTaxi;
        temperature=buleTaxi;
        buleTaxi.brake();
        fare.charge();
        temperature.controlAirTemperature();
        fare=redStarCinema;
        temperature=redStarCinema;
        fare.charge();
        temperature.controlAirTemperature();
    }
}
